package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LabProjectTeachingCultivationMapper;
import com.ruoyi.system.domain.LabProjectTeachingCultivation;
import com.ruoyi.system.service.ILabProjectTeachingCultivationService;

/**
 * 项目创建虚拟教学培育Service业务层处理
 * 
 * @author jun.wang
 * @date 2022-04-13
 */
@Service
public class LabProjectTeachingCultivationServiceImpl implements ILabProjectTeachingCultivationService 
{
    @Autowired
    private LabProjectTeachingCultivationMapper labProjectTeachingCultivationMapper;

    /**
     * 查询项目创建虚拟教学培育
     * 
     * @param instanceId 项目创建虚拟教学培育ID
     * @return 项目创建虚拟教学培育
     */
    @Override
    public LabProjectTeachingCultivation selectLabProjectTeachingCultivationById(Long instanceId)
    {
        return labProjectTeachingCultivationMapper.selectLabProjectTeachingCultivationById(instanceId);
    }

    /**
     * 查询项目创建虚拟教学培育列表
     * 
     * @param labProjectTeachingCultivation 项目创建虚拟教学培育
     * @return 项目创建虚拟教学培育
     */
    @Override
    public List<LabProjectTeachingCultivation> selectLabProjectTeachingCultivationList(LabProjectTeachingCultivation labProjectTeachingCultivation)
    {
        return labProjectTeachingCultivationMapper.selectLabProjectTeachingCultivationList(labProjectTeachingCultivation);
    }

    /**
     * 新增项目创建虚拟教学培育
     * 
     * @param labProjectTeachingCultivation 项目创建虚拟教学培育
     * @return 结果
     */
    @Override
    public int insertLabProjectTeachingCultivation(LabProjectTeachingCultivation labProjectTeachingCultivation)
    {
        return labProjectTeachingCultivationMapper.insertLabProjectTeachingCultivation(labProjectTeachingCultivation);
    }

    /**
     * 修改项目创建虚拟教学培育
     * 
     * @param labProjectTeachingCultivation 项目创建虚拟教学培育
     * @return 结果
     */
    @Override
    public int updateLabProjectTeachingCultivation(LabProjectTeachingCultivation labProjectTeachingCultivation)
    {
        return labProjectTeachingCultivationMapper.updateLabProjectTeachingCultivation(labProjectTeachingCultivation);
    }

    /**
     * 批量删除项目创建虚拟教学培育
     * 
     * @param instanceIds 需要删除的项目创建虚拟教学培育ID
     * @return 结果
     */
    @Override
    public int deleteLabProjectTeachingCultivationByIds(Long[] instanceIds)
    {
        return labProjectTeachingCultivationMapper.deleteLabProjectTeachingCultivationByIds(instanceIds);
    }

    /**
     * 删除项目创建虚拟教学培育信息
     * 
     * @param instanceId 项目创建虚拟教学培育ID
     * @return 结果
     */
    @Override
    public int deleteLabProjectTeachingCultivationById(Long instanceId)
    {
        return labProjectTeachingCultivationMapper.deleteLabProjectTeachingCultivationById(instanceId);
    }
}
